#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from kpi_day import get_stats_for_all


if __name__ == '__main__':
    if len(sys.argv) != 5:
        # print 'usage: %s year month day' % (sys.argv[0])
        # sys.exit(1)
        year, month, day, hour = 2012, 4, 16, 19
    else:
        year, month, day, hour = map(int, sys.argv[1:])

    print year, month, day, hour
    get_stats_for_all(year, month, day, hour)
